package org.meteorshower.system_depart.service;

import org.meteorshower.cms_common.exception.*;
import org.meteorshower.system_depart.entity.Role;

import java.util.List;

/**
 * 系统身份权限操作类
 * */
public interface RoleServiceInter {
    Role getById(Integer id) throws ServiceException, ResultNullPointException, ParameterNullPointException;
    Role getByName(String name) throws ServiceException, ParameterNullPointException, ResultNullPointException;
    List<Role> getAll() throws ServiceException, ResultNullPointException;
    Integer insert(Role role) throws ServiceException, ParameterNullPointException, RecordExitException;
    Integer update(Role role) throws ServiceException, ParameterNullPointException, UnknownRecordException;
    Integer deleteById(Integer id) throws ServiceException, ParameterNullPointException, UnknownRecordException;
}
